package club.xyes.zkh.ecommerce.dao.mapper;

import club.xyes.zkh.ecommerce.commons.entity.ShopMembership;
import club.xyes.zkh.ecommerce.dao.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Create by 郭文梁 2019/4/18 0018 14:23
 * ShopMembershipMapper
 * 商铺会员相关数据库访问对象
 *
 * @author 郭文梁
 * @data 2019/4/18 0018
 */
@Repository
public interface ShopMembershipMapper extends BaseMapper<ShopMembership> {
    /**
     * 根据ID查询会员卡信息 同时关联查询数据
     *
     * @param id ID
     * @return 会员卡信息
     */
    ShopMembership selectByIdFetchAll(@Param("id") Integer id);
}
